/*******************************************************************/
/* @ All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.        */
/*                                                                 */
/*  NAME      = jolt_packet.h                                      */
/*  NOTE      =                                                    */
/*  DATE      = 2015/06/02 by songbb                               */
/*******************************************************************/

#ifndef __JOLT_PACKET_H_
#define __JOLT_PACKET_H_

#include "jolt_core.h"

#define APM_JOLT_PACKET_FRAGMENTED 0
#define APM_JOLT_PACKET_UNFRAGMENTED 1
#define APM_JOLT_PACKET_ERROR 2

#define APM_JOLT_CHECK_FRAGMENT_SUCCESS 0
#define APM_JOLT_CHECK_FRAGMENT_NEED_NEXT_PACKET 1
#define APM_JOLT_CHECK_FRAGMENT_ERROR 2

int jolt_init_packet(L7_jolt_packet *p_st_jolt_packet);

int jolt_packet_inflater(L7_jolt_packet *p_st_jolt_packet);

int jolt_packet_unfragment(L7session_jolt *p_st_sess
                         , Apm_packet *p_st_packet
                         , L7_jolt_packet *p_st_jolt_packet);
#endif
